package com.example.ribbonconsumer.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.HandlerExceptionResolver;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;

@Configuration
public class ConsumerWebConfig extends WebMvcConfigurationSupport {

    @Bean
    public HandlerExceptionResolver handlerException() {

        return new GlobalHandlerExceptionResolver();
    }



}
